Skip to content

NW | 2026-mar-sdc | Zabihollah Namazi | Sprint 1 | Can't log in from profile page#191

Open
ZabihollahNamazi wants to merge 4 commits into
CodeYourFuture:mainfrom
ZabihollahNamazi:zabihollah
Open

NW | 2026-mar-sdc | Zabihollah Namazi | Sprint 1 | Can't log in from profile page#191
ZabihollahNamazi wants to merge 4 commits into
CodeYourFuture:mainfrom
ZabihollahNamazi:zabihollah

Conversation

@ZabihollahNamazi
Copy link
Copy Markdown

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

This PR fixes a bug where logging out on a profile page (like #/profile/AS) and logging back in caused the website to crash. This happened because the frontend got confused, trying to load the new user session data while still stuck on the old profile URL. To fix it, I added a page refresh inside login.mjs right after a successful login, which allows the website to safely reload the profile page with the correct "Logout" button exactly as required.

@ZabihollahNamazi ZabihollahNamazi added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Legacy-Code The name of the module. and removed Module-Legacy-Code The name of the module. labels May 24, 2026
@ZabihollahNamazi ZabihollahNamazi added the Module-Legacy-Code The name of the module. label May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Legacy-Code The name of the module. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant